package com.ty.user.starter.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 日志操作类型
 */
@Getter
public enum LogTypeEnum {
    QUERY(1, "查询"), ADD(2, "新增"), EDIT(3, "修改"), DELETE(4, "删除"),
    UPLOAD(5, "上传"), DOWN(6, "下载"),
    LOGIN(7, "登录"), EXIT(8, "登出"),
    OTHER(10, "其它");

    LogTypeEnum(int type, String name) {
        this.type = type;
        this.name = name;
    }

    private final String name;
    @EnumValue
    private final int type;
}
